'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
    async up(queryInterface, Sequelize) {
        await queryInterface.bulkInsert('Headers', [
            {
                categoryName: "主项名称",
                serviceName: "办理项名称",
                circulation: "流转情况",
                type: "事项类型",
                risk: "风险等级",
                timeLimit: "办结时限",
                unitName: "单位名称",
                code: "单位编号",
                customerName: "姓名/医保负责人姓名",
                identityId: "身份证号",
                channel: "受理渠道",
                location: "档案存储位置",
                eLocation: "档案编号(位置)",
                username: "受理人",
                acceptedTime: "受理时间",
                endTime: "规定办理时间",
                phoneNumber: "联系电话",
                bankName: "银行类别/开户行",
                owner: "银行卡户名/单位账户",
                number: "银行账号/单位账号",
                notes: "备注",
                auditState: "审核状态",
                auditSuggest: "审核建议",
                createdAt: new Date(),
                updatedAt: new Date()
            }
        ], {});
    },

    async down(queryInterface, Sequelize) {
        await queryInterface.bulkDelete('Headers', null, {});
    }
};
